package com.meituan.catering.management.order.dao.mapper;

import com.meituan.catering.management.order.dao.model.CateringOrderDO;
import com.meituan.catering.management.order.dao.model.CateringOrderItemDO;
import com.meituan.catering.management.order.dao.model.request.SearchCateringOrderDataRequest;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 订单对应的MyBatis Mapper
 */
@Mapper
public interface CateringOrderMapper {
    Integer countForPage(SearchCateringOrderDataRequest searchCateringOrderDataRequest);

    List<CateringOrderDO> searchForPage(SearchCateringOrderDataRequest searchCateringOrderDataRequest);

    CateringOrderDO findById(Long tenantId, Long orderId);

    Integer insert(CateringOrderDO cateringOrderDO);

    Integer makeOrder(CateringOrderDO cateringOrderDO);

    Integer billOrder(CateringOrderDO cateringOrderDO);

    Integer produceOrder(Long tenantId, Long orderId, Integer version);
}
